package designpattern.abstractfactory.base;

/**
 * 业务场景类。
 * 
 * @author chunwei.zhao
 * 
 */
public class Client {

	public static void main(String[] args) {
		Factory fx = new ConcreteFactoryX();
		ProductA pax = fx.createProductA();
		ProductB pbx = fx.createProductB();
		pax.doSomethingA();
		pbx.doSomethingB();

		Factory fy = new ConcreteFactoryY();
		ProductA pay = fy.createProductA();
		ProductB pby = fy.createProductB();
		pay.doSomethingA();
		pby.doSomethingB();
	}
}
